import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String string = in.nextLine();
        int len = string.length();
        StringBuffer stringbuffer = new StringBuffer();
        for(int i = 0; i < len; i++) {
            char cur = string.charAt(i);
            if(i == 0) {
                if(Character.isLowerCase(cur)) {
                    cur = (char)(cur - 32);
                }
                stringbuffer.append(String.valueOf(cur));
            }
            if(cur == ' ') {
                char next = string.charAt(i+1);
                if(Character.isLowerCase(next)) {
                    next = (char)(next - 32);
                }
                stringbuffer.append(String.valueOf(next));
            }
        }
        System.out.println(stringbuffer);
    }
}